
<!DOCTYPE html>
<html>
  <head lang="en">
    <meta charset="UTF-8" />
    <title>
      KLIPSE: a simple and elegant online cljs compiler and evaluator
    </title>
    <link rel="shortcut icon" type="image/x-icon" href="img/klipse.png" />
    <link rel="stylesheet" type="text/css" href="css/codemirror.css" />
    <link rel="stylesheet" type="text/css" href="css/lua.css" />
  </head>
  <body>
  <h2>Python</h2>

<pre><code class="eval-python eval-pyodide">def factorial(n):
  if n == 0:
    return 1
  else:
    return n * factorial(n - 1)

factorial(5)</code></pre>

  <h2>Python</h2>
    <pre><code class="eval-pyodide">
a = list(range(15))
if (n := len(a)) > 10:
    print(f"List is too long ({n} elements, expected <= 10)")
</code>
</pre>

  <h2>Numpy</h2>

    <pre><code class="eval-pyodide">
import numpy as np

np.linspace(0, 100, 11)
</code>
</pre>


  <h2>Pandas</h2>

    <pre><code class="eval-pyodide">
import pandas as pd

df = pd.DataFrame({"x": range(4), "y": [x**2 for x in range(4)]})

df.to_html()
</code>
</pre>

    <script>
      window.klipse_settings = {
        selector_pyodide: '.eval-pyodide'
        // , editor_type: 'dom'

      };
    </script>
    <script src="plugin_prod/js/klipse_plugin.min.js"></script>
    <!-- <script src="/fig/js/klipse.fig.js"></script> -->
  </body>
</html>

